package com.sduept.bigdata.iec61850.client;

import com.beanit.iec61850bean.SclParser;
import com.beanit.iec61850bean.ServerModel;

import java.util.List;

/**
 * @author: lxj
 * @date: 2022/3/24 8:17
 * @since
 */
public class SclParseDemo {
    public static void main(String[] args) throws Exception {
        String path1 = "E:\\公司文档\\项目管理\\智能录波器\\子站smcd文件\\继保\\smcdmodel_1_2021-07-15-19-53-47.smcd";
        String path2 = "D:/备份目录/模拟保护/dky.scd";//中国电科院.scd
        System.out.println("SclParser start ");
        long t = System.currentTimeMillis();
        List<ServerModel> models = SclParser.parse(path2);
        System.out.println(models.size());
        for (ServerModel s : models){
            System.out.println(s.getDataSets());
        }
        System.out.println("SclParser end "+(System.currentTimeMillis()-t)/1000);
		System.out.println("SclParser is done. Will quit.");
    }

}
